<ion-view view-title="拼车拼玩" class="xg-percar-view">
  <ion-nav-buttons side="left">
    <a class="ion-ios-home-outline" href="#/tab/home"></a>
  </ion-nav-buttons>
  <ion-nav-buttons side="right">
    <a class="ion-edit" href="#/car_publish"></a>
  </ion-nav-buttons>
  <ion-content class="xg-percar-content">
    <ion-list class="xg-percar-ul float-fix">
      <ion-item class="item-remove-animate item-avatar item-icon-right xg-percar-item xg-percar-item-work"  ng-repeat="category in categories">
        <div ng-click="carPoolingDetail(category)">
        <div class="float-fix">
          <span class="ion-ios-photos-outline"></span>
          <p>类别：<span class="percar-sort">{{category.description}}</span></p>
        </div>

        <div class="float-fix">
          <span class="ion-trash-a">
          </span>
          <p>失效日期：<span class="percar-deadline">{{category.expireDate|limitTo:10}}</span></p>
        </div>
        <div class="float-fix">
          <span class="ion-ios-telephone-outline"></span>
          <p>联系方式：{{category.name}}，{{category.phone}}</p>
        </div>
        <div class="float-fix">
          <span class="ion-ios-compose-outline"></span>
          <p>内容：{{ category.content|limitTo:45}}{{category.content.length>45?'...':''}}</p>
        </div>
        <i class="icon ion-chevron-right icon-accessory" ></i>
        </div>
        <ion-option-button class="button-assertive" ng-if="data.staffid==category.staffId" ng-click="data.delete(category)">
          删除
        </ion-option-button>
      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>
